.TH "multiplexer: splits mode requests into calls to different handlers." 3 "30 Jun 2005" "Version 5.2.1.rc3" "net-snmp" \" -*- nroff -*-
.ad l
.nh
.SH NAME
multiplexer: splits mode requests into calls to different handlers. \- The multiplexer helper lets you split the calling chain depending on the calling mode (get vs getnext vs set).  

.PP
.SS "Functions"

.in +1c
.ti -1c
.RI "\fBnetsnmp_mib_handler\fP * \fBnetsnmp_get_multiplexer_handler\fP (\fBnetsnmp_mib_handler_methods\fP *req)"
.br
.RI "\fIreturns a multiplixer handler given a \fBnetsnmp_mib_handler_methods\fP structure of subhandlers. \fP"
.ti -1c
.RI "int \fBnetsnmp_multiplexer_helper_handler\fP (\fBnetsnmp_mib_handler\fP *handler, \fBnetsnmp_handler_registration\fP *reginfo, \fBnetsnmp_agent_request_info\fP *reqinfo, \fBnetsnmp_request_info\fP *requests)"
.br
.RI "\fIimplements the multiplexer helper \fP"
.in -1c
.SH "Detailed Description"
.PP 
The multiplexer helper lets you split the calling chain depending on the calling mode (get vs getnext vs set). 
.PP
Useful if you want different routines to handle different aspects of SNMP requests, which is very common for GET vs SET type actions.
.PP
Functionally:
.PP
.IP "1." 4
GET requests call the get_method
.IP "2." 4
GETNEXT requests call the getnext_method, or if not present, the get_method.
.IP "3." 4
GETBULK requests call the getbulk_method, or if not present, the getnext_method, or if even that isn't present the get_method.
.IP "4." 4
SET requests call the set_method, or if not present return a SNMP_ERR_NOTWRITABLE error. 
.PP

.SH "Function Documentation"
.PP 
.SS "\fBnetsnmp_mib_handler\fP* netsnmp_get_multiplexer_handler (\fBnetsnmp_mib_handler_methods\fP * req)"
.PP
returns a multiplixer handler given a \fBnetsnmp_mib_handler_methods\fP structure of subhandlers. 
.PP
Definition at line 36 of file multiplexer.c.
.PP
References netsnmp_mib_handler_s::myvoid, netsnmp_create_handler(), netsnmp_multiplexer_helper_handler(), and snmp_log().
.SS "int netsnmp_multiplexer_helper_handler (\fBnetsnmp_mib_handler\fP * handler, \fBnetsnmp_handler_registration\fP * reginfo, \fBnetsnmp_agent_request_info\fP * reqinfo, \fBnetsnmp_request_info\fP * requests)"
.PP
implements the multiplexer helper 
.PP
Definition at line 57 of file multiplexer.c.
.PP
References netsnmp_agent_request_info_s::mode, netsnmp_call_handler(), netsnmp_set_all_requests_error(), and snmp_log().
.PP
Referenced by netsnmp_get_multiplexer_handler().
